package com.tbit.uqbike.object.pojo;

import com.tbit.common.entity.BaseEntity;
import com.tbit.uqbike.annos.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;
import java.util.List;

/**
 * 用户手机号码变动日志对象 userphonelog
 *
 * @author jing
 * @date 2021-04-02
 */
@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class UserPhoneLog extends BaseEntity {
    private static final long serialVersionUID = 1L;

    private Integer accountId;
    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 老号码
     */
    @Excel(name = "旧号码", sort = 1)
    private String oldPhone;

    /**
     * 新号码
     */
    @Excel(name = "新号码", sort = 2)
    private String newPhone;

    /**
     * 操作人
     */
    private Integer operaUserId;

    @Excel(name = "操作号码", sort = 0)
    private String operaPhone;

    /**
     * 变更原因
     */
    @Excel(name = "原因", sort = 3)
    private String reson;

    /**
     * 页数
     */
    private Integer pageNO;

    /**
     * 条数
     */
    private Integer rowCount;

    @Excel(name = "修改时间", sort = 4, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /**
     * 操作人id集合
     */
    private List<Integer> operaUserIdList;


    public UserPhoneLog(Integer accountId, Integer userId, String oldPhone, String newPhone, Integer operaUserId, String reson) {
        this.accountId = accountId;
        this.userId = userId;
        this.oldPhone = oldPhone;
        this.newPhone = newPhone;
        this.operaUserId = operaUserId;
        this.reson = reson;
    }
}
